package com.ask.service.Impl;

import com.ask.dao.UserDao;
import com.ask.service.UserService;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {


////    private UserDao userDao = new UserDaoImpl();
//    @Autowired
    private UserDao userDao;

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public void addUser(String username) {
        userDao.addUser(username);
        System.out.println("addUser in UserServiceImpl");
    }
}
